Shares of Facebook and Twitter fell as their top executives testified before the US Congress, defending the companies against a failure to combat continuing foreign efforts to influence US politics.