Adaptation in online social learning