Manchester City have completed the singing of Chilean goalkeeper Claudio Bravo from Barcelona for £17.1m.