Cognition-of-Thought Elicits Social-Aligned Reasoning in Large Language Models