U.S. President Donald Trump criticised Germany for its trade deficit and military spending levels after chancellor Angela Merkel mentioned her doubts about the reliability of Washington as an ally.