IBM reported a 42% decline in mainframe revenue for its most recent quarter, a drop the company attributes to customers diverting budgets to.