Arsenal complete the signing of Spain midfielder Mikel Merino from Real Sociedad for a fee that could reach £31.6m.