Drift chamber readout with flash ADCs: I. Time and spatial resolution