Chiral anomaly and optical absorption in Weyl semimetals