Symmetry representations in the rigged Hilbert space formulation of quantum mechanics