Thousands of migrants have set off on foot from southern Mexico to reach the United States border.