Journalist Gao Yu, who was detained by police in April on charges of leaking “state secrets” to foreign contacts, made what appeared to be a televised confession on CCTV saying that she was “willing to accept legal punishment” for her actions.