Tony Pulis says West Brom striker Saido Berahino needs to "get his act together", but wishes him well as he joins Pulis' former club Stoke.