The story of Facebook in the past few years has been that of a company slow to understand how powerful it has become. But an investigation by The New York Times finds that once Facebook’s leaders understood the problems they faced, they sought to conceal them.