Frustration of crystallisation by a liquid–crystal phase