A total of 791 Central American migrants, including 368 children under the age of eight, have been detained in the Mexican state of Veracruz, officials say.