Electoral competition with strategic voters