Bochner theorems for hypergroups and their applications to orthogonal polynomial expansions