Mexico City’s former mayor Claudia Sheinbaum, fielded by the ruling Morena party, has been elected Mexico's first female president.