Over the last four quarters, IBM has spent more than $ 23 billion on dividends and buybacks while revenue has shrunk. A better idea is to invest more in the business.