Plan before Solving: Problem-Aware Strategy Routing for Mathematical Reasoning with LLMs