Voters in swing states have received misleading text messages claiming they had not yet cast their ballots despite having already voted.