The prime minister calls for “cool heads” as the UK and the EU search for a deal ahead of a key summit.