China says loss-making state firms should exit market