Mom-and-pop investors bought the dip at key points, giving them outsized benefits from the market's run this year.