US President Donald Trump offered to mediate the "explosive" situation in Kashmir amid mounting international concern over a flare-up in violence between India and Pakistan.