Former Clarets boss will take charge of former German champions after compensation package agreed