Genes may be more to blame for obesity than a healthy appetite for junk food, according to a study in the UK.