Function to cut the dendrogram for a new height (distance limit) or a new number of clusters and map the new partition