US president says it is contingent on Tehran opening Strait of Hormuz 'completely, immediately and safely'.