Taiwan chip giant TSMC has beaten expectations of a drop in revenue, reporting steady fourth-quarter sales growth.