Gordon Ramsay has urged his fans to remember to wear sun cream after having treatment to remove skin cancer.