Invariant torsion and G2-metrics