Accretion, radial flows and abundance gradients in spiral galaxies