US president’s remarks follow talks between Gulf state and Tehran over provisional arrangement to manage Strait of Hormuz