Box logged higher revenue in its fiscal fourth quarter as it boosts its artificial-intelligence technology offering, but warned of a significant hit to profitability from a stronger U.S. dollar.