Terrorism in J&K related to cross-border infiltration: President