The lure of trying to time the market may tempt even long-term investors. But outguessing markets isn’t as straightforward as it sounds.