Police are hunting two young women and a teenage boy after a 52-year-old man was attacked in Tranent.