A diet that boosts good bacteria in the stomach could be key to reducing the risk of diabetes, an Australian study has found.