Remains of medieval castle unearthed in Glasgow