A historic Cockermouth brewery is set to reopen after being bought by two business owners and entrepreneurs.