Ofcom has issued almost £5.5m of fines to companies that have failed to comply with the Online Safety Act.