Photocatalytically active composite for wastewater treatment