Cardi B has clapped back at a prosecutor for criticising the outfits the rapper has been wearing to court.