Madrid, Barcelona clash over control of Catalan police