Researchers link ancient wooden structure to water ritual