The naive globalisation of the 1990s has become a liability. Britain and its allies need to beef up their defences