UPS, looking for ways to get goods to shoppers faster, is investing in same-day delivery company Deliv.