Sexually transmitted infections (STIs) including gonorrhoea and syphilis have hit record levels in Europe, according to new data.