Multiwavelength survey of a sample of flat-spectrum radio-loud narrow-line Seyfert 1 galaxies