Impact of time delays on stochastic resonance in an ecological system describing vegetation