US President Donald Trump told reporters in the Oval Office that he preferred a diplomatic solution but insisted the US retained the ability to strike key Iranian infrastructure if necessary.