Leeds resist Wakefield fightback to go third in Super League