Senegal has been stripped of its AFCON title in an unprecedented ruling that hands Morocco the African international title instead.