Commonwealth Bank of Australia has admitted in a public hearing that it charged fees to clients who had died years ago.