IBM will cut thousands of jobs this quarter as it doubles down on high-margin software and AI cloud services.