How many weeks did Mexican partisans hold San Francisco before it was recaptured by Americans