Hong Kong, China shares close up for first time in 3 days; retailers rise