Should always listen to the experts about what's wrong with the country.
who are the experts ? the electorate.
While the electorate are not stupid, many people will respond emotionally and seek what they see as simple solutions to complex problems.
Many of the electorate were/are concerned about immigration, so it seemed simple to just leave the EU and stop the EU migrants. The fact is that most EU migrants are working people, contributing to the economy. People blame them for taking jobs ... but the jobs have been there for UK citizens should they want them - we have the living wage, so working for low wages taking jobs away from UK citizens cannot be an issue (and if it is, it is the UK employers at fault).
Yes, there were other issues, but the evidence does seem to point to immigration and less for sovereignty being the main leave vote issue.
We vote in MPs to decide on issues on our behalf. The majority of MPs voted to remain. Perhaps that means that they were not responding so emotionally, but were seeing a bigger picture, and overall future.
I would imagine that if we had a spate of horrific murders, then had a referendum on hanging, many people would vote emotionally and vote for hanging. Have that vote at a different time, and you would get a different outcome.
If we had held the referendum say in 2 years, after the concessions that Cameron got from the EU had been enacted and had time to see the results, the referendum result may have been different.
Who knows. Whatever ... we are leaving, and we all have to do our best to move forward.