On the Rationality of Cognitive Dissonance