PFME: A Modular Approach for Fine-grained Hallucination Detection and Editing of Large Language Models