Walmart has bought Bushwick-based logistics startup Parcel to compete with Amazon for bringing groceries to New Yorkers.