The world economy is weakening as energy prices fuel a new bout of inflation.