Tens of thousands of migrants have been stuck in southern Mexico as the government has stepped up efforts to prevent them from heading towards the United States border.