Brexit sparked greater attachment to the European Union in UK and EU citizens living abroad, survey suggests