Task-KV: Task-aware KV Cache Optimization via Semantic Differentiation of Attention Heads