On a trip to Tokyo, US Defense Secretary Pete Hegseth has said the US and Japan need to maintain a strong relationship to deter China's "military aggression."