A leftist teacher in Peru is poised to claim victory in a contentious election against the far right