US President Donald Trump said on Tuesday that the US military will leave Iran in "two or three weeks".