Barnard Castle, County Durham, St Mary's Church