Bayesian inference and testing of group differences in brain networks