A project set up to tackle loneliness has received National Lottery funding to keep it going for another three years.