Pete Hegseth, the US defence secretary, says European countries should not rely on the US to guarantee their security.