Researchers looked at how much $1 million invested in cash versus stocks would have earned over almost 100 years.