Optical evidence of the chiral magnetic anomaly in the Weyl semimetal TaAs