Withholding rent is never a good idea. Although it is permitted, a tenant who chooses to use Civil Code section 1942 repair and deduct scheme must actually use the withheld money to make the repairs. Otherwise, by not following the scheme laid out in section 1942, the tenant opens themself up to charges that they are simply not paying their rent. California, while it allows repair and deduct to used, does not allow for rent strikes.
That being said, your landlord seems to have failed to provide some of the basics necessary to make the premises habitable. My suggestion would be to make a demand of the landlord that you will have your next rent reduced by the amount you had to lay out for hotel and meals (and parking if thats an issue) plus the daily rental for your unit for the period which you were out. If the landlord refuses, you can then take them to, presumably, small claims court.
Furthermore, you may live in an area which is covered by a rent control law. There may be an administrative procedure available for you to recover your losses. Before you do anything, I would suggest that you contact an attorney in your area who represents tenants and understands the local rent control laws which may apply to you.
If the problem is serious enough, and the landlord has allowed a condition to exist, or caused it to exist, which makes your home uninhabitable, you may have a cause of action for constructive eviction or breach of the warranty of quiet enjoyment.
However, in order to make an intelligent choice, you need to sit down with an attorney and see what your options are.
This answer is made available by the lawyer for educational purposes only. It is also to give you general information and a general understanding of the law. This answer is not intended to give you specific legal advice. By using or participating in this site you understand that there is no attorney client privilege between you and the attorney responding. This site should not be used as a substitute for competent legal advice from a licensed professional attorney in your state. The information and materials provided are general in nature, and may not apply to a specific factual or legal circumstance.
For a better understanding of habitability you may wish to look at the following link. http://www.dca.ca.gov/publications/landlordbook/problems.shtml If the property is truly uninhabitable and you incur costs to live elsewhere during the period of repairs you may always bring a claim against the property owner in Small Claims court if he/she is unwilling to reimburse you.