Optimal clustering in Bayesian Capital Asset Pricing Model