David Cameron was left &#x201c;weakened&#x201d; by the unexpected defeat.