Consensus community detection in multilayer networks using parameter-free graph pruning