Learning to communicate risk information in social groups