Brexit must not mean isolation: UK foreign secretary