A political opponent has accused San Francisco Mayor Gavin Newsom of cocaine use.