The world's second-biggest sportswear maker, adidas-Salomon, has announced that it is buying smaller rival Reebok in a deal worth €3.1 billion.