Planetary perturbations and the origins of short-period comets