Ride-hailing company Uber has agreed to buy food delivery app Postmates in a multibillion dollar deal. Uber has been badly…