Human rights groups say the government has detained hundreds of people in secret , accusing them of links to extremist groups .