IBM reports rise in Q4 profit, but plans to cut 3,900 jobs