Nonparametric estimation of a time-varying GARCH model