Duality of averaging of quantum states over arbitrary symmetry groups revealing Schur-Weyl duality