Overseas intelligence agencies are ‘flooding online comment sections with unofficial and fake history’, ministry says.