The impact of feedback and the hot halo on the rates of gas accretion on to galaxies