Macfarlane, the Glasgow-based packaging company, has acquired Scotland-based The Pitreavie Group in an £18 million deal.