I’ve also found that staking the cake (with a dowel) and refrigerating it immediately helps keep it together.