Multiple London councils have been hit by a cyber attack, with the potential for residents’ data to have been compromised.