Homomorphisms from $C^*$-algebras of continuous trace