Prime Minister Recep Tayyip Erdogan secures place in history as Turkey's first directly elected president