Effective field theory for inflation