It was never about immigration.... I believe it was all sparked by in-fighting within the Conservative party.
The only certainties are that the UK now has a massive pile of paperwork to do all over again, which will cost time and money (lots of money)
Why anyone would choose to exclude themselves (or go back to square one, so to speak) from trading with a massive chunk of the globe staggers me. The UK has spent decades negotiating trade deals with Europe - and now they're just going to re-negotiate those exact same deals all over again - only this time you won't have so much leverage.
Big businesses that deal with Europe will relocate outside of the UK - making the financial city of London much, much, weaker over time - remember it's this part of the city that props up most of the UK. All of the wealth is in the south east - more specifically in the financial center.
On the other hand, most people here in Italy (and the rest of the EU) also seem to regard it is a particularly stupid move - and in time the rest of Europe will very much reap the benefits of the UK leaving the EU as many of the larger coporations relocate. The tech sector will be hit hard.. Add to this the UK's draconian levels of surveillance which they seem to love and I'm actually glad we left. Whilst I do feel sorry for those that will suffer most in the years to come - you only brought it on yourselves, well... through some very serious media-manipulation, of course.
It was a dumb move that's left the UK far worse off than before and it's current political/financial situation in chaos. Oh... and Boris may well be the new PM.
This sums it up rather neatly:
http://www.theregister.co.uk/2016/06/27/quick_note_brexit_consequences_for_it/