Retrieval Head Mechanistically Explains Long-Context Factuality