Mechanistic Understanding and Mitigation of Language Model Non-Factual Hallucinations