A fundamental metallicity relation for galaxies at z=0.84-1.47 from HiZELS