President Recep Tayyip Erdogan has won Turkey's presidential election, defeating opposition leader Kemal Kilicdaroglu in Sunday's runoff vote and stretching his rule into a third decade.