Wakefield coach Richard Agar has stepped down from his post and been replaced by assistant James Webster with immediate effect.