Prime Minister David Cameron said on Thursday (July 10) that parliament would rush through a emergency legislation to force telecoms companies to retain customers' data for a year, saying the move was vital to protect national security following a decision by Europe's top court.