Investors warm up to defence as geopolitical risks rise