Flood threat ends in J&K