US tech giant expected to spend as much as $25bn on warehouse automation in broader efficiency drive