Spanish police have raided the Catalan region's government offices and arrested public officials in Barcelona.