Deutsche Bank has reached a settlement relating to the bank's issuance and underwriting of residential mortgages.