Amazon said in a blog it had signed an agreement to acquire Zoox, a California-based company working to design autonomous ride-hailing vehicles from the ground up.