Computer chip giant TSMC says it will more than triple its investment in a giant US plant to $40bn (£33bn).