US to retain control of detainees at Afghanistan prison