Weyl's lemma on $RCD(K,N)$ metric measure spaces