Turkey's PM 'can remain at post to run for president'