LONDON (Reuters) - Britain's top shares index climbed to a four-month high on Friday, putting it on course for its biggest weekly gain in three years, with Associated British Foods (>> Associated British Foods plc) leading the market higher on encouraging retail sales data.

However, the blue-chip FTSE 100 index <.FTSE> underperformed some European markets due to a sharp drop in miners on weaker metals prices. The index was up just 0.4 percent by 1557 GMT, compared with about 1.5 percent gain for some European indices, which got a boost from the quantitative easing programme the European Central Bank announced on Thursday.

Associated British Foods rose 3 percent, with traders saying the stock was helped by an encouraging update from Premier Foods (>> Premier Foods Plc), up 9.5 percent, and after data showed UK retail sales rose 0.4 percent in December, beating expectations for a 0.6 percent fall.

"Companies such as Associated British Foods (ABF) are getting support from encouraging UK retail sales numbers. ABF is one to chase amongst retailers because of positive prospects at its discount fashion chain Primark and as its expansion programme in the United States is likely to support valuations going forward,” Jawaid Afsar, sales trader at Securequity, said.

Some telecoms shares also gained on hopes of consolidation in the sector. BT (>> BT Group plc) rose 2.3 percent and Vodafone (>> Vodafone Group plc) was up 0.5 percent, after Hutchison Whampoa (>> Hutchison Whampoa Limited), the owner of Britain's Three Mobile network, agreed to buy 02, the British mobile business of Telefonica (>> Telefonica SA).

Investors were pricing in higher margins for operators Vodafone, Three and EE, which BT is in talks to acquire.

However, a sharp drop in mining shares following a slump in metals prices capped gains. The UK mining index <.FTNMX1770> fell 3.3 percent. Antofagasta (>> Antofagasta plc), Glencore (>> Glencore PLC) and Rio Tinto (>> Rio Tinto plc) fell 3 to 6 percent.

"The FTSE is being held back relative to euro zone stocks by commodity prices, which are generally under pressure following sharp euro weakening because they are priced in dollars," Edmund Shing, global equity fund manager at BCS Asset Management, said.

Metals and energy companies have about a 22 percent weighting in the FTSE 100 index, against about 6 percent in some euro zone share indexes, analysts said.

Despite the underperformance, the FTSE 100 was up about 4 percent this week and headed for its best weekly gain since late 2011.

After the euphoria caused by the ECB's quantitative easing programme, traders saw a potential hurdle in Greek elections this weekend. Polls show the anti-bailout party Syriza is set to win.

(Additional reporting By Francesco Canepa; Editing by Larry King)

By Atul Prakash