Analytical and Empirical Study of Herding Effects in Recommendation Systems