Thailand's PM Srettha Thavisin has been dismissed by the country's Constitutional Court, which ruled he violated ethics by appointing a minister who had served prison time.