Amber Heard and Johnny Depp have reached an out-of-court settlement to end their 18-month marriage after the actress withdrew allegations that her husband physically abused her.