Alliance with nationalists harmed Erdogan’s AK Party – former Turkish PM Davutoglu