TSMC posts record profit as AI chip demand fuels 77.4% surge