Star formation in the local environments of high-redshift ultraluminous infrared galaxies