Ursula von der Leyen, the nominee to become the next European Commission chief, has told MEPs she hopes the UK abandons its plans for Brexit.