Phase behaviour and correlations of parallel hard squares: from highly confined to bulk systems