Local Gauge Symmetry And Emergence Of Topological Order In Quantum Spin Systems