Community detection on multilayer hypergraphs using the aggregate similarity matrix