WeWork seeks bankruptcy protection in stunning fall for a company once valued close to $50 billion