DESPOTA: an algorithm to automatically detect a reliable partition on a dendrogram