Before Brexit, Britain was one of the most influential members of the European Union