Cardi B has been cleared of assault and battery in a civil case brought against her by a security guard.