It was "shadowy" of the government to reveal Angela Rayner warned about the threat to social cohesion in a "readout", Harriet Harman has said.