Algorithms on social media need regulation, says UK’s AI adviser