New retaining wall to be built to protect York's ancient cit