Arsenal sign Brazil midfielder Willian on a three-year deal after the 32-year-old's contract with Chelsea expired.