Stochastic factors and string stability of traffic flow: Analytical investigation and numerical study based on car-following models