Liquid-induced topological transformations of cellular microstructures