The White House has dismissed North Korea's claim that a tweet by Donald Trump amounted to a declaration of war.