The final scene of the Channel 4 drama, in which Alan Cumming’s Leo is lynched by his homophobic neighbour and a group of football hooligans, was brutal and unflinching. Davies, the show’s creator, tells Ellie Harrison about the challenges of putting it on screen