Marblehead football shakes off upset-minded Peabody in fourth quarter