Optical conductivity and resistivity in a four-band model for ZrTe5 from ab initio calculations