Glitches, machine breakdowns hamper voting in five states