(Reuters) - Hewlett-Packard stunned Wall Street by alleging a massive accounting scandal at its British software unit Autonomy that will cost the company the majority of $8.8 billion in charges.