Alastair Cook and Nick Compton led the England fightback on day four of the first Test at the University Oval.