Dollar-cost averaging entails putting chunks of money in the market at regular intervals instead of investing a lump sum. Here’s how it can benefit investors.