Bayesian models for hierarchical clustering of network data