In a deal worth $8.8bn, Hewlett-Packard has sold its enterprise software division as the company continues to downsize