More home-cooked meals and baking hobbyists have driven up butter sales while other parts of the dairy industry have struggled.