Afghans head to polls as Taliban threats mount