Dieters don't have to banish junk food and soda, study suggests