Cantor tells newspaper he'll resign in August