Central banks to trim dollar holdings, buy gold