UK retailer Sainsbury's has said it plans to phase out the sale of battery-reared chickens by the end of next year.