Turkish President Recep Tayyip Erdoğan has taken oath of office for his third term after re-election.