A man had to be dug out of a hole after soil fell in on him during excavation work in West Sussex