Mark Carney, a former banker, will take over at a tumultuous time in Canada, which is in the midst of a trade war with the United States.