Ten years after the referendum that led to Brexit, Britain and the European Union must close ranks in an increasingly unstable world, their leaders said on Saturday.