Former Catalan government head detained in Sardinia, his office says