Neil Parish formally resigns as MP after admitting to watching porn in Commons