Six years ago, hedge fund manager David Einhorn launched a battle to expose accounting problems at Allied Capital, a financial company. In a new book, he says the experience revealed how the media and financial regulators can sometimes fail investors.