E-commerce retailers that rode a surge of online purchases in 2020 are now grappling with the fact that some customers have returned to stores.