Invariant difference schemes for the Ermakov system