From selling shares to a second home, making a profit on your assets could leave you with a tax bill