basis averaging scheme to transfer half of a capital gain to the taxpayer’s wife was an abuse of the attribution rules