America operated a secret prison in Afghanistan as recently as last year and tortured inmates there, according to a human rights organisation.