A study has found that exposing bread, potatoes and other starchy foods to very high temperatures can produce toxins that can cause cancer.