$C^*$-algebras associated to coverings of $k$-graphs