Treasury figures reveal $18 billion capital gains windfall for Australia’s richest 10 per cent