Constraining the redshifts of unlocalised fast radio bursts