On the structure of compact torsion groups