Nato must switch to a wartime mindset, warns secretary general