E-commerce is here to stay, as long as retailers connect with consumers at the right time