A new book on Hewlett-Packard’s management history offers cautionary tales for today’s leading tech companies.