Report deems NSA telephone records programme illegal