Amazon.com Inc. is deploying software in its warehouses to automatically warn employees when they’re too close to colleagues, the latest effort by the retailer to adjust its facilities to life with the coronavirus.