Government push to ‘better understand’ social media algorithms in bid to stamp out online extremism