Voting began on Saturday to elect a president for Afghanistan with more than 9 million registered voters potentially heading to the polls amid attacks in several cities.