Magnum and Ben & Jerry's owner Unilever has moved to add to its ice cream business with a deal to buy Australian firm Weis.