State attorney general announces foreclosure settlement on behalf of 185 Mainers