Prince Harry choked back tears as he addressed parents who lost children to online harms during an unannounced appearance in Los Angeles as a major court case begins.