what group invaded ghana in the late 1000s