Turkish president accepts resignation of treasury minister