Wayne Rooney will continue to lead England under Sam Allardyce but says the 2018 World Cup will be his last international campaign.