Tech companies have agreed to measures to tackle fake news and concerns that it can influence elections, the European Commission said on Wednesday.