Top EU court says data retention illegal