Australian social media users would be given a choice to opt out of algorithms under proposed laws.