Iran says ready for diplomacy but ‘fully prepared’ for war if US attacks