Consuming more highly processed foods proportionately increases the risk of cancer, a study has suggested.