Optical polarimetry and photometry of comet 17P/Holmes