Four youths were rescued from dangerous waters and a cliffside cave at Thornwick Bay after a rising tide left them struggling in rough sea conditions.