Topological invariance of torsion