Harrogate street ranger saves man hanging from tree near library