The rapid succession of UK prime ministers over the past decade reflects one of the most turbulent periods in modern British politics.