Mexicans have elected Claudia Sheinbaum to be their next president in a landslide endorsement of the ruling party that for the first time puts a woman in charge of the country.