Just six months ago, in confident form and not looking at all like a man who would soon be out of work, David Cameron assured an audience in Hamburg that “I never want us to pull up the drawbridge and retreat from the world.”