Leveraging Hierarchical Taxonomies in Prompt-based Continual Learning