UK food wholesaler Booker is set to buy the local cash-and-carry assets of German retail giant Metro Group.