LLaMP: Large Language Model Made Powerful for High-fidelity Materials Knowledge Retrieval and Distillation