Arsenal have completed the signing of goalkeeper David Raya fron Brentford on a permanent basis, the club have announced.