China's economy grew by 5% last year, one of the slowest growth rates in decades, as domestic demand remains weak amid a prolonged property sector crisis.