Bath fly-half Stephen Donald is leaving The Rec at the end of the season to join Japanese side Mitsubishi Dynaboars.