German police detain former Catalan president