Retailers double down on investments to optimize the surge in online consumer buying