Amazon’s profit nearly doubled in the fourth quarter as the e-commerce giant was able to offset the rising costs of running its vast e-commerce business with...