The fear of missing out (FOMO) on food prevents people from dieting successfully, research has shown.