Ridgefield house sells for nearly $4M