Waqar Younis resigns as Pakistan coach