Britain leaves the European Union after 47 years of membership