US President Donald Trump has denied reports that the top US military officer had flagged the severe risks of a major attack against Iran.