No city or county shall regulate or prohibit canvassing, polling, soliciting or otherwise approaching private residences for the purpose of distributing campaign literature or campaigning for a candidate for an elected office.