On a General Model for Social and Cognitive Consistency