Kerry says he cannot promise a nuclear deal with Iran, but will test whether diplomacy can prevent need for military action