President Donald Trump said that the US and Iran had "very good talks" in Oman after delegations from both countries participated in indirect discussions in the Gulf state.