A California city has been ranked the worst place in the country to drive after a year packed with crashes, thefts and higher-than-average expenses for motorists.