To what extent did commanders learn and adapt to modern warfare during the First World War?