Bayesian cluster analysis of categorical data