Trump claims credit as India and Pakistan agree to ceasefire