Quasi-product actions of a compact abelian group on a $C^*$-algebra