A failed gamble? How the Tory election campaign imploded