Walmart invests in automation as it sells robotics arm