Stephen Fry felt "guilt and shame" after trying to take his own life because of the impact on his loved ones.