A Mexican mayor thought to be the "mastermind" behind the mass abduction of 43 students has been arrested in Mexico City.