A mechanism for particle size segregation in three dimensions