The next head of the European Union’s executive, Ursula von der Leyen, said on Tuesday she would work “in a constructive way” with any new British prime minister.