Constructions of ternary constant-composition codes with weight three