It's a pity that the planted trees then die. I would take a soil sample to have an analysis done to be absolutely sure that it is not due to the soil. If it really was caused by waterlogging, only one option remains for me: soil improvement. The planting hole should not be chosen too small. Mix clayey soil with sand and topsoil, and then plant the tree (alder, ash, poplar, and willow). Then a replanting should also work. Regards Laura