David Cameron leaves his country economically stronger but politically and socially fractured.