Former prime ministers Sir Tony Blair and Gordon Brown paid tribute to a “working class hero” at the funeral of Lord John Prescott.