UK supermarkets should pull a range of snack products, including flapjacks, from their shelves in a bid to curb rising obesity, according to the outgoing head of the Food Standards Agency.