Integration and periodic divergent series
You are asking about asymptotics$^\dagger$. Specifically assigning a meaning to divergent series. The strategy is to first construct something that does converge out of your series. Using Borel summation, we write
$$ \phi(x)=\sum_{n=0}^{\infty} c_n \frac{x^n}{n!}$$
Where the $c_n$ are given by your series
$$ c_n =5^n \cos(nt)$$
Now let
$$ B(x)=\int_0^\infty dz \ \phi(xz)\exp(-z)$$
We will define your (divergent) sum as $B(1)$, if that exists. It's not obvious, but the above things are defined so that $B(1)=\sum_n c_n$, which follows after a few manipulations. In any case, with the assistance of Mathematica, I find
$$\phi(x)=\cos(5x\sin(t)) \left( \cosh(5x\cos(t))+\sinh(5x\cos(t))\right)$$
$$B(x)=\frac{1}{2}\left( 1+\frac{1}{1-5xe^{it}}+\frac{5x}{-5x+e^{it}} \right)$$
$$ B(1) = \frac{1}{2}+\frac{6}{-13+5\cos(t)}$$
This is nice, but the manipulations are obscure and the integrals annoying. Let us apply Euler summation to get the same answer with much less fuss$^\ddagger$. Let
$$ I(x)=\sum_n c_n x^n $$
With the $c_n$ given by your series. This is more intuitive than Borel summation because it is obvious that when $x=1$, we have $\sum_n c_n$, which is your original sum. We will define $\lim_{x\rightarrow 1}I(x)$ as that sum, if the limit exists. Substituting your $c_n$
$$ I(x)=\sum_n (5x)^n \cos(nt)=\frac{1}{2} \sum_n (5x)^n \left(e^{int}+e^{-int} \right)$$
$$ I(x)=\frac{1}{2} \sum_{n=0}^\infty \left( 5xe^{it} \right)^n +\frac{1}{2} \sum_{n=0}^\infty \left( 5xe^{-it} \right)^n$$
We now have two geometric series, and importantly, they converge for $|x|<1/5$.
$$ I(x)=\frac{1}{2} \frac{1}{1-5xe^{it}}+\frac{1}{2} \frac{1}{1-5xe^{-it}}$$
Having performed the sum, we take the limit $x \rightarrow 1$ to find
$$ I(1)=\frac{1}{2}+\frac{6}{-13+5\cos(t)}$$
Which we may define as the value of your sum. As promised, $I(1)=B(1)$. Why does this (sometimes) work? Because for small enough $x$, perhaps $I(x)$ converges, even though the original sum didn't. Similar logic applies to Borel summation, with that terrific $1/n!$ damping of terms.
$\dagger$ Too large a topic to explain here. I'll just refer you to Carl Bender's excellent book: Advanced mathematical methods.
$\ddagger$ There are other types of summation, too. For a given series, some may work while others fail.
EDIT: Using a method inspired by the other answer:
For real $t$, the sum must diverge because $|\cos|\leq1$ but $5^n$ grows exponentially, so $\lim_{n\rightarrow \infty}c_n \neq0$. However, if we allow $t \in \mathbb{C}$, and writing $\cos$ in exponential form, the sums converge for $t$ with sufficiently large imaginary part. After performing the sum we can define the answer to be $\lim_{\Im(t)\rightarrow 0}$, which turns out to be exactly $B(1)$.