The role of $\rm H^+$ and $\rm H_3^+$ ions in the degradation of interstellar molecules