The US president claimed Iran was seeking missiles able to hit American territory but said his "preference" was for a diplomatic solution