Topological characterization of torus groups