Seaside towns need to be redesigned for the modern age to tackle deprivation and health inequalities, England's chief medical officer has said.