Spanish police battle mass protest as Catalan separatist leader is detained