Contagion in the Interbank Market: Funding versus Regulatory Constraints