Why did South America’s most fantastic museum only attract 150,000 visitors a year? The government has neglected Brazil’s history, says the country’s biggest novelist, but so have the people