Mr Erdogan voted in Istanbul accompanied by his wife and two grandchildren