Angela Rayner has warned that online algorithms are fuelling hate speech against politicians, after an Australian MP lost a leg in an incident being investigated by counter-terrorism police.