Jupiter may be the reason why Earth has a moon, new study hints