Sony, slow to realize the depths of its peril during the cyberattack, let its troubles deepen by mounting a public defense only after enormous damage had been done.