how to cope with losing money in the stock market