A survey of more than 2.4 million people finds that being online can have a positive effect on welfare.