Optimal Clustering under Uncertainty