Machine breakdowns, glitches hampered voting in 5 states