Turkish President Tayyip Erdogan claimed victory in Sunday's presidential election and said his ruling AK Party and its alliance partner had won a parliamentary majority.