Pope Francis: Church should apologize to gays, other marginalized groups