When tempted by chocolate, friends become partners in crime, study says