Ofcom has fined Virgin Media after an investigation found it had left thousands of vulnerable telecare customers at risk.