India’s prime minister has fulfilled a campaign promise by opening a Hindu temple built on the site of a historic mosque