Turkey's opposition has agreed to unite behind Kemal Kilicdaroglu, who will challenge President Erdogan in the country's upcoming elections.