Ford profit beats forecasts on record North America margins