Estimating gas accretion in disc galaxies using the Kennicutt-Schmidt law