The men's and women's Tour de France will both begin in Britain in 2027, with Edinburgh to stage the men's Grand Depart.