Cape: Context-Aware Prompt Perturbation Mechanism with Differential Privacy