Amber Heard has claimed in court that Johnny Depp's substance abuse led to him losing "control" of his bodily functions and having to be "cleaned up" by his security team.