Theresa May wishes LGBT people a "wonderful" Pride festival and says the event has been instrumental in helping them gain equal rights over the years.