Nine out of 10 rugby players believe taking part in the sport boosts their mental health and well-being, research suggests.