When the financial markets are volatile, it is tempting to imagine that you can get in and out nimbly enough to improve your portfolio returns. The data shows how difficult that really is.