For some fish, being born close to a new moon increases the chances they will develop as male, while female offspring are more likely when the moon is full, a new study has found.