Meg Whitman took over one of Silicon Valley’s most storied tech companies after a disastrous tenure by the previous chief executive, promising a turnaround within five years. She will leave a little more than six years later, having torn the Hewlett-Packard puzzle into several pieces but accomplished little else beyond paying off investors and laying off employees.