General Motors to close five North America factories