Ripon library to close for refurbishment