Ahmet Davutoglu, a former Turkish PM and Erdogan ally-turned-critic, has stepped down from politics.