Wooden stakes used as defence barriers during the Civil War have been unearthed by archaeologists excavating the remains of Sheffield Castle as part of the Castlegate regeneration project.