Foundations of Non-Bayesian Social Learning