The president of the National Electoral Institute, Guadalupe Taddei Zavala, resigned days after the nation’s top auditing and oversight authority announced it had opened an investigation based on irregularities in contracts awarded by the electoral agency.