Actually I do think that the Brexit vote is largely the fault of the Remain campaign.
I think that people, especially in poorer areas which are typically where migrants will go (because land/rent is cheaper) have been dealing with overstretched services, struggling schools and neighbourhoods that have shifted dramatically and all the issues that integration brings with it. And this has been going on for a long time.
These people have been trying to have a conversation about the issues that migration brings for years. The response has been "well you must all be racist cunts then". This is deeply unfair- I'm not against immigration, but migrant and transitory populations DO cause social issues. Integration takes time, services get stretched. These issues were never satisfactorily addressed.
The remain campaign continued this. They were so complacent and so assured that they would win they called anyone who challenged the issue of migration (not that Brexit and migration are the same thing, but that's how it was presented) a racist.
If you keep calling people racist rather than have real discussions about population change and movement, and yes, they will eventually get fucked off with the lack of engagement and get fucked off with being called racist. And they will eventually vote Brexit because "fuck you guys who called me racist".
I was appalled at how arrogant the Remain campaign was, I seem to recall the Guardian in particular. One doesn't have to look far- even on this thread it was referenced that the vote was decided by "thickos" and "daily mail readers".
I think that level of contempt is the reason that the Remain campaign lost. I think that when one dismisses people based on ones own ideology a whole group of 'other' is created who will, very naturally, do the opposite of what you want, precisely because you want it, because they were dismissed as "thickos" and DM readers.