Phase Transitions for High Dimensional Clustering and Related Problems