Cook leads England fightback, visitors wipe off deficit