Rite Aid same-store sales up 0.4% in August