Inference for Network Regression Models with Community Structure