Man rescued from river near Ripon