Britain’s intelligence agencies expect close relations with European and other foreign spy services to continue regardless of plans to quit the European Union, official sources said.