People with depression, anxiety or loneliness are being offered a free nature-based course aimed at improving their mental health.