HP reaches agreement in shareholder suits over Autonomy acquisition