Rob Grant, the writer, who has died aged 70, was the co-creator of one of Britain’s most popular and enduring television comedies, the sci-fi sitcom Red Dwarf.