UK ‘must pay into EU rearmament fund’ to benefit from it