Weakly supervised histopathological image representation learning based on contrastive dynamic clustering