How Brexit brought Britain's constitution to the brink