A man who was found in a river had called mental health services before he died, a coroner’s court has heard.