Canada’s dollar weakened against the greenback on speculation Mark Carney’s Liberal Party would achieve only a narrow election victory.