Waterlogging had weakened the roots of the tree, leaving it in a precarious condition, residents said