The appointment of Jean-Claude Juncker as the next president of the European Commission could raise risk of Britain exiting the EU.