Corporate balance sheets are swelling with cash, reaching $1.8 trillion at the end of 2012. Many accuse companies of hoarding, but there’s more to the story.