Adaptive design of clinical trials with interim selection of treatment arms