Uber is cutting 10% of its global workforce to flatten organisational layers, CEO Dara Khosrowshahi said in a memo.