United Arab Emirates officers tortured detainees in 18 secret prisons in Yemen, an AP news agency investigation finds.