A political class that failed to predict a Leave vote has yet to come to terms with the consequences.