Cardi B has told a Los Angeles court she did not attack a security guard who is suing her for assault.