This recurrence only makes sense when repeatedly dividing $n$ by three eventually yields 1; that is, when $n$ is a power of three. So let's start by assuming that $n=3^m$. Then we may restate the problem as:
$$
\begin{eqnarray}
T(3^0)&=&1 \\
T(3^m)&=&3T(3^{m}/3)+3 &=& 3T(3^{m-1})+3
\end{eqnarray}
$$
or
$$T(3^m)-3T(3^{m-1})-3=0$$
I'll point out that this is an order 1 linear recurrence relation in $m$, and that dictates that form of the result. But instead of just pulling a formula out of thin air and solving for some coefficients, I'll demonstrate a method to actually derive the formula: using ordinary generating functions.
Let $f(x)=T(3^0)+T(3^1)x+T(3^2)x^2+\cdots$ be the ordinary generating function for the sequence $\{T(3^m)\}$. We want to combine some multiples of this power series so that the the coefficients of the combination will satisfy the recurrence relation. To do this, we calculate:
$$
\begin{eqnarray}
f(x)&=&T(3^0)&+&T(3^1)x&+&T(3^2)x^2&+&T(3^4)x^3&+&\cdots \\
-3xf(x)&=&0&-&3T(3^0)x&-&3T(3^1)x^2&-&3T(3^2)x^3&+&\cdots \\
\frac{-3}{1-x}&=&-3&-&3x&-&3x^2&-&3x^3&+&\cdots \\
\end{eqnarray}
$$
Ok, I'll admit I did pull that last formula (for an infinite geometric series) out of thin air. Adding these together, we have:
$$
\begin{eqnarray}
f(x)-3xf(x)-\frac{3}{1-x} &=& -3 + T(3^0)&+&[T(3^1)-3T(3^0)-3]x&+&[T(3^2)-3T(3^1)-3]x^2&+&\cdots \\
&=& -2 &+& [0]x &+& [0]x^2 &+&\cdots
\end{eqnarray}
$$
So that $$
\begin{eqnarray}
[1-3x]f(x)&=&-2 +\frac{3}{1-x} \\
f(x)&=&\frac{-2}{1-3x}+\frac{3}{(1-x)(1-3x)} \\
&=&\frac{-2}{1-3x}-\frac{\frac{3}{2}}{1-x}+\frac{\frac{9}{2}}{1-3x} & \textrm{(partial fraction decomposition)} \\
&=&\frac{\frac{5}{2}}{1-3x}-\frac{\frac{3}{2}}{1-x} \\
&=&[\frac{5}{2}-\frac{3}{2}]+[\frac{5}{2}\cdot 3^1-\frac{3}{2}\cdot1^1]x+[\frac{5}{2}\cdot3^2-\frac{3}{2}\cdot1^2]x^2+\cdots
\end{eqnarray}
$$
Matching coefficients yields
$$
\begin{eqnarray}
T(3^m) &=& \frac{5}{2}\cdot3^m-\frac{3}{2} \\
T(n) &=& \frac{5}{2}n-\frac{3}{2}
\end{eqnarray}
$$