These retailers are beefing up their stores to survive a new era of shopping - and it's paying off