I am proving that the sample covariance matrix $\mathbf{S}=\frac{1}{n-1}\mathbf{X}^T\mathbf{X}$ is an unbiased estimator for the covariance matrix $\mathbf{\Sigma}$, where $\mathbf{X}$ is a mean centred $n$x$p$ data matrix. Note that $\mathbf{\hat\mu}=\frac{1}{n}\sum_1^n\mathbf{x}_i$ is the MLE for $\mathbf{\mu}$, considering the p-variate normal distribution $N_p(\mathbf{\mu},\mathbf{\Sigma})$. This is what I have so far:
$$\mathbb{E}[\mathbf{S}]= \mathbb{E}[\frac{1}{n-1}\mathbf{X}^T\mathbf{X}]= \frac{1}{n-1}\mathbb{E}[ \sum_1^n (\mathbf{x_i}-\mathbf{\hat\mu})(\mathbf{x_i}-\mathbf{\hat\mu)^T}]= \frac{1}{n-1}\mathbb{E}[ \sum_1^n (\mathbf{x}_i\mathbf{x}_i^T-2\mathbf{x}_i\mathbf{\hat\mu}+\mathbf{\hat\mu}\mathbf{\hat\mu}^T)]= $$ $$\frac{1}{n-1}\sum_1^n (\mathbb{E}[\mathbf{x}_i\mathbf{x}_i^T]-\mathbb{E}[\mathbf{\hat\mu}\mathbf{\hat\mu}^T]) $$ but here is where I am unsure how to proceed.
I know that $\mathbf{x}_i$~$N_p(\mathbf{\mu},\mathbf{\Sigma})$ gives $\mathbf{\hat\mu}$~$N_p(\mathbf{\mu},\frac{\mathbf{\Sigma}}{n})$ but how does this give an expected value for $\mathbf{\hat\mu}\mathbf{\hat\mu}^T$ or $\mathbf{x}_i\mathbf{x}_i^T$ in terms of the covariance matrix?
Remember the identity $var(X) = \mathbb{E}(X^2) - \mathbb{E}(X)^2$.
It may help to notice that
$\mathbb{E}[x_ix_i^T] = \mathbb{E}[x^2]$. Also expand out $\mathbb{E}[\hat{\mu}^T\hat{\mu}]$ using the definition $\hat{\mu}$ and the fact that $X$ is mean centered