The International Monetary Fund has raised the alarm over a global ā€œguns versus butterā€ trade-off as countries ramp up defense spending.