Japan’s Sharp posts narrower loss for the year, cost cuts paying off