Study found overweight people more likely to shed pounds if they spend time with thin friends