US home sales beat market expectations in August