David Cameron falls on his sword as gamble backfires