Cosmic star formation history with tomographic cosmic infrared background-galaxy cross-correlation