Herschel measurements of the D/H and 16O/18O ratios in water in the Oort-cloud comet C/2009 P1 (Garradd)