US President Donald Trump said his patience with Iran was running out and that Chinese President Xi Jinping had agreed during their talks in Beijing that Tehran must reopen the Strait of Hormuz.