The Japanese government has rejected the UN's recommendation to permit women in the imperial line of succession.