It was a gamble that went spectacularly wrong for Tory Prime Minister David Cameron: Allow the UK to decide through a national referendum on their future participation in the EU and hope that they choose to remain.