Cycle lengths in randomly perturbed graphs