Harry Styles has said One Direction were encouraged to "give a lot of themselves away", revealing that life in the spotlight often felt very lonely.