Big galaxies steal star-forming gas from their smaller neighbours