James Mattis, US defence secretary, has promised an “effective and overwhelming” response to threats from North Korea.