Injured hiker rescued as tide rises in cave