Hierarchical cosmic shear power spectrum inference