Nearly a third of Afghan detainees tortured in security cases - U.N.