People in their 30s and 40s make up a “squeezed middle” that fall into a protection gap, research from Hargreaves Lansdown has shown.