Credit And Financial Contagion: A Point Process Approach