Donald Trump has criticised Britain’s plan to hand the Chagos islands to Mauritius, calling the deal an “act of stupidity”.