China's factory activity slowed in March as export costs surged.