A record £16.7bn in capital gains tax was raised in the last tax year with a sharp rise in the number of people selling residential property