Clustering of categorical data: a comparison of a model-based and a distance-based approach