Ultraluminous infrared galaxies at high redshift: their position on the Madau plot and their fate