Retail investors have been net buyers of equities as hedge funds trim exposure