Lords amend Ofcom's powers to scan encrypted messages