Anyone entering the US illegally would be arrested, detained and then deported back, President Donald Trump has warned as he threatened three Central American nations to halt a migrant caravan from heading to America or lose millions of dollars in foreign aid.