Hewlett-Packard shrinks UK legal team to cut costs