The dependence of optical polarisation of blazars on the synchrotron component peak frequency