Turkish PM Davutoglu formally resigns ahead of new government