Contrastive Learning Reduces Hallucination in Conversations