Community detection in hypergraphs via mutual information maximization