A wave of relative calm has washed over global markets as President Trump indicated the US and Iran would hold talks within days.