Despite recent settlements with state and federal regulators and a new California law that tightens rules for the mortgage industry, banks and their subsidiaries continue to file invalid documents and foreclose on properties to which they appear to have no legal right, an analysis of thousands of pages of property records and wrongful foreclosure lawsuits shows.