Toshiba chairman quits over $3.4bn loss