Tehran said it has discovered that the United States is planning strikes on Iran - warning this will trigger retaliation.