Turkish police have detained 10 senior officials from opposition-run district municipalities in Istanbul, accusing them of links to Kurdish militants.