EU agrees rules to boost retail investment in capital markets