US food group General Mills is to close two manufacturing facilities with the loss of over 580 jobs.