Clustering and variable selection for categorical multivariate data