Bristol City have completed the signing of goalkeeper Frank Fielding from Derby County for an undisclosed fee.