Target Corp. is learning the hard way: The price is steep for retailers who don’t protect customers’ sensitive financial information.