Blood test for diagnosing cancer