The best way to prevent mashed cauliflower from getting soggy is to drain it well and add minimal liquids before mashing.