Both sexually transmitted infections have gone up by about 20% in England in 2017, figures reveal.