Existence and Rigidity of Quantum Isometry Groups for Compact Metric Spaces