Yes, tenants can withhold rent in California if landlords have failed to fix serious problems that make habitability hard. However, you cannot withhold rent entirely because you must pay the reasonable value of the rental in its damaged state. Check local laws for any specifications on withholding rent.