Foreign banks as shock absorbers in the financial crisis