Extreme mass ratio inspirals and tidal disruption events in nuclear clusters - I. Time-dependent rates