Erdogan becomes Turkey's first executive president after winning more than half the votes, election officials say.