Rate-Distortion Theory for Clustering in the Perceptual Space