Ratings agencies failed to alert investors that complex securities backed by U.S. mortgages were of poor quality. AP