TikTok and YouTube have been criticised by the communications watchdog for "failing" to take steps to protect children "despite overwhelming evidence of harm".