UK lawmaker resigns after admitting twice watching porn in parliament