Rhyl seafront and a former asylum to benefit from £20m