It can be hard to resist the temptation to snack on sweet treats when you're looking to lose weight - but they don't all have to be off limits.