European Union agrees post-Brexit rules for hedge funds