President Erdogan accepts cabinet's resignation