When markets decline, selling often feels like a logical response. In reality, this strategy backfires.