Former Bank of England governor Mark Carney has won the race to succeed Justin Trudeau as Canada’s prime minister.