Effect of magnetic field on the charge and thermal transport properties of hot and dense QCD matter