Ride-hailing firm Uber posted a $5.2 billion loss in its first reporting quarter after going public this year, the largest loss ever for the company, raising fresh questions about its plans to take up a huge amount of new San Francisco office space to accommodate projected growth.