Uber has shut down its services in two African markets after reviewing its business, as the move came alongside a global workforce cut announcement.