Knowledge Graph-Based Behavior Denoising and Preference Learning for Sequential Recommendation