iStock.com/bpperry

UK government must fix data retention legislation in six months, court rules