Thousands of people in Madrid have held a rally in protest at plans by the Catalan regional government to hold a referendum on independence