Survey shows support in key EU countries for an agreement with Britain covering trade and security