Consensual dynamics: an unsupervised learning model in group decision making