Castro resigns as president, state-run paper reports