Andrew Griffiths quits after sending messages of a sexual nature to two female constituents.