Turkish President-elect Recep Tayyip Erdogan is officially sworn in later after winning the country's first ever popular vote for head of state.