The president of Mexico was forced to fight off a man who touched her body and tried to kiss her as she greeted crowds.