HP beat on revenue but came up short on earnings and guidance, partly due to President Donald Trump's tariffs.