Manchester City have re-signed goalkeeper James Trafford from Burnley in a deal worth £27 million ($36.3m).