Pending home sales increased in December for the first time since May