Sunderland manager David Moyes says his side had to "hang in there" to gain a "well-earned" point, which sees them climb off the bottom of the Premier League table.