CAPS: Context-Aware Priority Sampling for Enhanced Imitation Learning in Autonomous Driving