Nationalist identity politics have put the EU at risk of falling apart. What would happen if other member states decided to follow the UK out?