The Taiwan-listed assembler of Apple and Nvidia products posted record revenue for the fourth quarter, helped by robust demand for servers to power burgeoning artificial intelligence technologies.