Inferring community structure in attributed hypergraphs using stochastic block models