Observations of hyperluminous infrared galaxies with the Infrared Space Observatory: implications for the origin of their extreme luminosities