IBM fourth-quarter sales declined and margins narrowed, indicating that revenue in cloud computing and artificial intelligence hasn’t yet offset acquisition costs and other expenses to move the company into new businesses. Revenue was $21.8 billion, slipping for the 19th consecutive quarter.