Chipmaker TSMC reports earnings up 5 percent on record Q3 revenue