capital loss in stock market