Tree Prompting: Efficient Task Adaptation without Fine-Tuning