More than 50 same-sex couples have married in a group ceremony in Mexico City to mark the capital's designation as a "gay-friendly" city.