US fast food giant McDonalds has announced a settlement in a lawsuit brought by a group which said it had failed to tell consumers that a promised cut in trans fats would be delayed.