Sigmund Freud, William Halsted and cocaine addiction