At least 35 people were killed in a stampede at a New Year's celebration in Shanghai, China, state media reported.