Nature of optical excitations in the frustrated kagome compound herbertsmithite