The effect of functionalisation on thermoelectric properties of molecular junctions