China to curb food waste by legislation