Peru’s ousted president appears in court after being charged with rebellion