Bayesian Stochastic Blockmodels For Community Detection In Networks And Community-Structured Covariance Selection