Prison plans could cost extra 4bn and be short of 12400 cell spaces by 2027