China's factory prices rise for first time in 12 months