Optimal portfolio and consumption selection with default risk