WorkSafe to investigate how and why trench collapse happened