Brooklyn real estate investment cooled in 2017, but demand for core markets remains strong