Triple covers of $3$-folds as canonical maps