taxpayer’s deduction of losses made in respect of shares