HP's decision to keep its PC and printer businesses was a mistake. Now comes a huge loss on its Autonomy deal