Multiplicity of compact group representations and applications to Kronecker coefficients