The longtime head of Mexico's powerful oil workers union, Carlos Romero Deschamps, has resigned a day after the president hinted he should step down to face allegations of wrongdoing, Mexican media reported on