Thai king signs constitution in step towards poll