England fight back with Cook, Compton centuries