Basically housing benefits etc are means tested and you have to declare savings, bank details, stocks and shares owned by you etc. If the DWP sees c£50k sitting in your bank account (and legally you'd have to declare this), I don't think it would be conducive to getting any benefits.