Thousands trek to Amarnath cave for prayers