As consumers increasingly move online, traditional retailers are struggling. These technologies will help.