Italians are voting after a divisive campaign dominated by concerns over immigration and the economy led to an unpredictable contest.