Retail investors led buying while hedge funds sold single stocks, and small-cap flows hit a record four-week average.