An analogue of the Kostant-Rallis multiplicity theorem for $\theta$-group harmonics