Learning Dynamic Prompts for All-in-One Image Restoration