Cluster model of lipid phase transitions with application to passive permeation of molecules and structure relaxations in lipid bilayers