Cart abandonment costs retailers an estimated $4 trillion in lost sales annually. Here's what you can do to beat the odds.