Leftist candidate wins Mexican presidency