This is caused by “butter bleed”. If your kitchen is too warm, the butter from the sugar cookie melts and seeps into the royal icing, creating yellow-ish blotches. While your cookies will still taste delicious, there’s not much that you can do to fix it. See the next section for detailed storage tips.