Knowledge Graph-Enhanced Large Language Models via Path Selection