Angela Rayner was branded a hypocrite on Sunday for buying a seaside apartment as her own department warns against the impact of second homes.