Community Detection and Classification in Hierarchical Stochastic Blockmodels